package com.yun.baymax.bean.adapter;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import cn.bmob.v3.BmobObject;

/**
 * Created by Administrator on 2016/11/15.
 */
@Entity
public class BudgetInfo extends BmobObject {
    public String author;
    @Id(autoincrement = true)
    private Long id;
    private String name;
    private double total;

    public BudgetInfo() {
    }

    public BudgetInfo(String name, double total) {
        this.name = name;
        this.total = total;
    }

    @Generated(hash = 713149403)
    public BudgetInfo(String author, Long id, String name, double total) {
        this.author = author;
        this.id = id;
        this.name = name;
        this.total = total;
    }

    public void saveAll(String name, double total) {
        this.name = name;
        this.total = total;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getTotal() {
        return this.total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

}
